/**
 * @fileoverview Magic dependency loading. Taken from script.aculo.us
 * and modified to break it.
 * @author Stefan Strigler steve@zeank.in-berlin.de
 */

/*exported JSJaC */
export  class JSJaC {
  static Version:string='1.4'
  /**
   * 事件绑定操作 
   * @param fn 回调的函数
   * @param obj 
   * @param optArg 
   */
  static bind(fn:Function, obj:any, optArg?:any):Function {
    return function(arg:any) {
      return fn.apply(obj, [arg, optArg]);
    }
  }

}